/**
 * @author 0283000115
 * @date 2018年3月3日-下午4:05:25
 */
package com.zte.claa.inficombo.csa.app.model.dev;

/**
 * @author 0283000115
 *
 */
public class DevPagePara {
	// 从1开始，1--第一页。
	private int pageIndex = 1;
	// 每页数据记录数. [1~200];
	private int batch = 100;	
	// offset偏移，不用设置，自动根据pageindex和batch计算.
	private int offset = 0;
	
	public DevPagePara(){
		
	}

	/**
	 * @return the pageIndex
	 */
	public int getPageIndex() {
		return pageIndex;
	}

	/**
	 * @param pageIndex the pageIndex to set
	 */
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
		this.offset = this.batch * (this.pageIndex - 1);
	}

	/**
	 * @return the batch
	 */
	public int getBatch() {
		return batch;
	}

	/**
	 * @param batch the batch to set
	 */
	public void setBatch(int batch) {
		this.batch = batch;
		this.offset = this.batch * (this.pageIndex - 1);
	}

	/**
	 * @return the offset
	 */
	public int getOffset() {
		return offset;
	}

	/**
	 * @param offset the offset to set
	 */
	public void setOffset(int offset) {
		this.offset = offset;
	}
	
}
